const results = [];
function request(promises) {
    return Promise.all(promises)
}

const req1 = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve('1')
    },1800)

})
const req2 = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve('2')
    },1300)
})
const req3 = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve('3')
    },1400)
})

request([req1,req2,req3]).then(res=>{
    console.log(res)
})

// function send() {
//     req1.then((res) => console.log(res))
//     req2.then((res) => console.log(res))
//     req3.then((res) => console.log(res))
//
// }
// send()
